package com.fenxiangtech.mall.model;

import java.math.BigDecimal;
import java.util.Date;

public class Cart {

        //自增主键
        private Long id;
        //用户id
        private Long userId;
        //商品id
        private Long productId;
        //价格
        private BigDecimal price;
        //商品数量
        private Integer count;
        //
        private Date createTime;
        //
        private Date updateTime;

        public Long getId() {
                return id;
        }

        public Cart setId(Long id) {
                this.id = id;
                return this;
        }

        public Long getUserId() {
                return userId;
        }

        public Cart setUserId(Long userId) {
                this.userId = userId;
                return this;
        }

        public Long getProductId() {
                return productId;
        }

        public Cart setProductId(Long productId) {
                this.productId = productId;
                return this;
        }

        public BigDecimal getPrice() {
                return price;
        }

        public Cart setPrice(BigDecimal price) {
                this.price = price;
                return this;
        }

        public Integer getCount() {
                return count;
        }

        public Cart setCount(Integer count) {
                this.count = count;
                return this;
        }

        public Date getCreateTime() {
                return createTime;
        }

        public Cart setCreateTime(Date createTime) {
                this.createTime = createTime;
                return this;
        }

        public Date getUpdateTime() {
                return updateTime;
        }

        public Cart setUpdateTime(Date updateTime) {
                this.updateTime = updateTime;
                return this;
        }
}